****************************************************************************
*************************** Runs all do-files in the project ***************
****************************************************************************


clear all
set more off
set varabbrev off								


// Install necessary packages -- can be commented out
capture: ssc install estout
capture: ssc install coefplot
capture: net install "http://www.stata-journal.com/software/sj12-4/sg97_5.pkg"



// Name the local macro for the project root directory

**********************************************************************************************
*********** Change to your directory here  ------->>> ****************************************
local pdir " **** YOUR PATH HERE **** "												
**********************************************************************************************


local dofile "`r(dofile)'"					// Do file's stub name
local sig {bind: {hi: [RP: `dofile'.do]}}	// Add a signature in the notes
local code "`pdir'/code"					// Name the local macro for the code sub directory

timer on 1

include "`code'/1_master_analysis.do"	// empirical analysis for the main paper
include "`code'/2_master_appendix.do"	// empirical analysis appendix
include  "`code'/3_model_simulation/simulate_model.do" // simulate model (main paper and appendix)

timer off 1
timer list 1
